DXL FIltering and Column update

Hello everyone,

i'm new to DXL coding and i need your help for a DXL script. I have a list of ReqIds and i have to update a corresponding Column which have a list of certain values(e.g val1, val2 val3) as Enumeration. 

If a requirement Ids is in mylist then add value="value" to the column C.

i try to solve it with this script:

 

pragma runLim,0

nlMod = "/Path";

String ReqIdToBeUpdated[s]={"ID1","ID2","ID3","ID4"};

Object o = null;

string newValue= "value"; 
string s  = ""; 

string colName;

string ReqIDs;


lMod = read(nlMod , false);

int i;
for o in lMod do 
{
    colName= "colName";

    ReqIDs="colReqID";
      
    for (i = 0; i < sizeof(ReqIdToBeUpdated); ++i)
    {
        if (ReqIDs==ReqIdToBeUpdated[i]){
             colName +=newValue;
        }
    }
}

This does what i want. But some of the ReqIds have an outgoing Link to an another Modul and i also have to add a value in a column in that linked modul. But i don't know how to do that.

I'll be thankful for any suggestion. Please help me Crying

thank's

 

 


A.J.Olivier - Mon Jul 27 06:11:43 EDT 2015